package com.qf.day01;

import java.util.Scanner;

public class DemoZy {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入三角形的底:");
        double d = sc.nextDouble();
        System.out.println("请输入三角形的高:");
        double h = sc.nextDouble();
        double sum = (d*h)/2;
        System.out.println("三角形的面积为:"+sum);
    }
}
